<?php
// 消息验证器
namespace app\console\validate;

use think\Validate;

class MemberMessage extends Validate
{
    protected $rule = [
        'title' => 'max:20'
    ];

    protected $message = [
        'title.max' => '消息标题最多20字符'
    ];
}